#include<iostream>
#include<string.h>
using namespace std;

int main()
{
  string s;
  cin>>s;
  cout<<s<<endl;
  s = "xxxxxxx";
  cout<<s<<endl;
  //生成s的复制品st
  string st(s); 
  cout<<st<<endl;
  //从下标1开始到下标4前为范围赋初值
  string s2("abcdefg",1,4);
  cout<<s2<<endl;
  //从下标0开始到下标5前为范围对字符串赋初值
  string s3("abcdefg",5);
  cout<<s3<<endl;
  //复制10个i
  string st4(10,'i'); 
  cout<<st4<<endl;
  //从一个字符串的下标开始一直复制到最末尾
  string st5(s,5);
  cout<<st5<<endl;
  return 0;
}
